def dec(obj):
    obj.color = "red"
    return obj

@dec
class bird(object):
    color = "white"
    name = "bird"
    def fly(self):
        print("bird ...fly")

print(bird.color)

